<?php
	require 'admin/sql.class.php';

//echo "输出这个";
	$currentPage = 0;
	@$currentPage = $_GET["page"];
	$arr = getListFromContent($currentPage * 3, 3);
	foreach ($arr as $key => $value) {
		echo "<li>
				<div><a href='#'><strong>[" . $value["classname"] . "]</strong></a><a href='detail.php?id=". $value["id"] ."'><strong>" . $value["title"] . "</strong></a></div>
				<p>" . $value["content"] . "</p>
				<span>日期：" . $value["createTime"] . " 点击：1748 作者：" . $value["nickname"] . "</span>
			</li>";
	}